package star.cloud.asme.asmePerson.asmePersonCertification;

import com.baomidou.mybatisplus.core.metadata.IPage;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import star.cloud.asme.base.dto.Result;
import star.cloud.asme.base.mybatis.IBaseController;

@RestController
@RequestMapping("/asmePerson/asmePersonCertification")
@RequiredArgsConstructor
public class AsmePersonCertificationController implements IBaseController<AsmePersonCertification> {

    private final AsmePersonCertificationService asmePersonCertificationService;

    @Override
    public Result<AsmePersonCertification> getOneByCondition(String columnName, Object columnValue) {
        return asmePersonCertificationService.getOneByCondition(columnName, columnValue);
    }

    @Override
    public Result<IPage<AsmePersonCertification>> getListByConditionsWithPage(AsmePersonCertification conditions) {
        return asmePersonCertificationService.getListByConditionsWithPage(conditions);
    }

    @Override
    public Result<AsmePersonCertification> insertOne(AsmePersonCertification entity) {
        return asmePersonCertificationService.insertOne(entity);
    }

    @Override
    public Result<AsmePersonCertification> updateOne(AsmePersonCertification entity) {
        return asmePersonCertificationService.updateOne(entity);
    }
}
